﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="True" CodeBehind="Media.aspx.cs" Inherits="Cms.Web.UI.Admin.Media" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="Stylesheet" type="text/css" href="/Admin/Css/Media.css?v=1" />
    <link rel="Stylesheet" type="text/css" href="/Admin/Css/List.css" />
    <link rel="Stylesheet" type="text/css" href="/Admin/Css/DragAndDrop.css" />
    <script language="javascript" type="text/javascript" src="/Admin/Js/DragAndDrop.js?v=3"></script>
    <script language="javascript" type="text/javascript" src="/Admin/Js/Dialogs.js"></script>
    <script language="javascript" type="text/javascript" src="/Admin/Js/PageSpecific/Media.aspx.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="buttons" runat="server">
    <asp:UpdatePanel ID="upnlButtons" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
        <ContentTemplate>
            <asp:Panel ID="pnlButtonActions" runat="server" />
            <asp:LinkButton ID="lbCut" runat="server" CssClass="orangeButton" Visible="false" OnClick="lbCut_Click"><span id="lblCut1" runat="server"><span id="lblCut2" runat="server"><img id="imgCut" runat="server" src="Admin/Img/icons/cut.png" alt="" /><span id="lblCut3" runat="server"><cms:LocalizedLiteral ID="llCut" runat="server" /></span></span></span></asp:LinkButton>
            <asp:LinkButton ID="lbCopy" runat="server" CssClass="orangeButton" Visible="false" OnClick="lbCopy_Click"><span id="lblCopy1" runat="server"><span id="lblCopy2" runat="server"><img id="imgCopy" runat="server" src="Admin/Img/icons/page_copy.png" alt="" /><span id="lblCopy3" runat="server"><cms:LocalizedLiteral ID="llCopy" runat="server" /></span></span></span></asp:LinkButton>
            <asp:LinkButton ID="lbPaste" runat="server" CssClass="orangeButton" Visible="false" OnClick="lbPaste_Click"><span id="lblPaste1" runat="server"><span id="lblPaste2" runat="server"><img id="imgPaste" runat="server" src="Admin/Img/icons/page_paste.png" alt="" /><span id="lblPaste3" runat="server"><cms:LocalizedLiteral ID="llPaste" runat="server" /></span></span></span></asp:LinkButton>
            <asp:LinkButton ID="lbDeleteMultipleFiles" runat="server" CssClass="orangeButton" Visible="false" OnClick="lbDeleteMultipleFiles_Click"><span id="lblDeleteMultiple1" runat="server"><span id="lblDeleteMultiple2" runat="server"><img id="imgDeleteMultiple" runat="server" src="Admin/Img/icons/cross.png" alt="" /><span id="lblDeleteMultiple3" runat="server"><cms:LocalizedLiteral ID="llDelete" runat="server" /></span></span></span></asp:LinkButton>
            <asp:LinkButton ID="lbZip" runat="server" CssClass="orangeButton" Visible="false" OnClick="lbZip_Click"><span id="lblZip1" runat="server"><span id="lblZip2" runat="server"><img id="imgZip" runat="server" src="Admin/Img/icons/package_add.png" alt="" /><span id="lblZip3" runat="server"><cms:LocalizedLiteral ID="llZip" runat="server" /></span></span></span></asp:LinkButton>
            <asp:Label ID="lblButtonDivider" runat="server" Visible="false" CssClass="buttonBarDivider" />
            <asp:hyperlink id="hlUpload" runat="server" CssClass="orangeButton"><span><span><img src="Admin/Img/icons/folder_up.png" alt="" /><span><cms:LocalizedLiteral ID="llUpload" runat="server" /></span></span></span></asp:hyperlink>
            <asp:hyperlink ID="hlNewFolder" runat="server" CssClass="orangeButton"><span><span><img src="Admin/Img/icons/folder_add.png" alt="" /><span><cms:LocalizedLiteral ID="llNewFolder" runat="server" /></span></span></span></asp:hyperlink>
            <span class="buttonBarDivider"></span>
            <asp:LinkButton ID="lbSync" runat="server" CssClass="orangeButton" OnClick="lbSync_Click" OnClientClick="cms.Lists.ShowPaneOverlay('folderPaneOverlay'); cms.Lists.ShowPaneOverlay('filePaneOverlay');"><span><span><img src="Admin/Img/icons/arrow_join.png" alt="" /><span><cms:LocalizedLiteral ID="llSync" runat="server" /></span></span></span></asp:LinkButton>
            <asp:label ID="lblCancelDivider" runat="server" cssclass="buttonBarDivider"></asp:label>
            <asp:HyperLink ID="hlCancel" runat="server" CssClass="orangeButton"><span><span><img src="Admin/Img/icons/delete.png" alt="" /><span><cms:LocalizedLiteral ID="llCancel" runat="server" /></span></span></span></asp:HyperLink>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="body" runat="server">
    <asp:Literal ID="litIcon" runat="server" Visible="false" Text="Admin/Img/Icons/drive.png" />
    <div style="overflow: hidden;">
        <div id="folderPane">
            <asp:UpdatePanel ID="upnlFolders" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
                <ContentTemplate>
                    <asp:Panel ID="pnlFolderActions" runat="server" />
                    <asp:Literal ID="litFolders" runat="server" />
                </ContentTemplate>
            </asp:UpdatePanel>
            <div id="folderPaneOverlay" class="paneOverlay"></div>
            <div id="folderPaneOverlayProgress" class="paneOverlayProgress"><img src="Admin/img/progress.gif" /></div>
        </div>
        <div class="verticalDivider">&nbsp;</div>
        <div id="filePane">
            <asp:UpdatePanel ID="upnlFiles" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
                <ContentTemplate>
                    <asp:Panel ID="pnlFileActions" runat="server" />
                    <table class="mediaFileList">
                        <tr>
                            <th class="noPadding"><asp:checkbox id="chkAll" runat="server" onclick="toggleAllCheckboxes(this.checked);" AutoPostBack="true" /></th>
                            <th><cms:LocalizedLiteral ID="llFileHeader" runat="server" /></th>
                            <th class="alignRight"><cms:LocalizedLiteral ID="llSizeHeader" runat="server" /></th>
                            <th><cms:LocalizedLiteral ID="llDateHeader" runat="server" /></th>
                            <th><cms:LocalizedLiteral ID="llSortKeyHeader" runat="server" /></th>
                            <th><cms:LocalizedLiteral ID="llCategoriesHeader" runat="server" /></th>
                            <th><cms:LocalizedLiteral ID="llUserGroupsHeader" runat="server" /></th>
                            <th><cms:LocalizedLiteral ID="llInfoHeader" runat="server" /></th>
                            <th><cms:LocalizedLiteral ID="llDescriptionHeader" runat="server" /></th>
                        </tr>
                        <asp:Repeater ID="rpFiles" runat="server" OnItemDataBound="rpFiles_ItemDataBound">
                            <ItemTemplate>
                                <tr>
                                    <td class="noPadding"><ilib:iCheckBox ID="chkMedia" runat="server" AutoPostBack="true" /></td>
                                    <td><asp:Literal ID="litID" runat="server" /><img id="imgFile" runat="server" /><span><asp:literal ID="litFile" runat="server" /></span></span>
                                        <asp:Literal ID="litThumbnail" runat="server" Visible="false" />
                                    </td>
                                    <td class="alignRight"><asp:Literal ID="litSize" runat="server" /></td>
                                    <td><asp:Literal ID="litUploadedTimestamp" runat="server" /></td>
                                    <td><asp:Literal ID="litSortKey" runat="server" /></td>
                                    <td><asp:Literal ID="litCategories" runat="server" /></td>
                                    <td><asp:Literal ID="litUserGroups" runat="server" /></td>
                                    <td><asp:Literal ID="litInfo" runat="server" /></td>
                                    <td><asp:Literal ID="litDescription" runat="server" /></td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                    <asp:Panel ID="pnlNoFiles" runat="server" class="noListRows"><cms:LocalizedLiteral ID="llNoFiles" runat="server" /></asp:Panel>
                </ContentTemplate>
            </asp:UpdatePanel>
            <div id="filePaneOverlay" class="paneOverlay"></div>
            <div id="filePaneOverlayProgress" class="paneOverlayProgress"><img src="Admin/img/progress.gif" /></div>
        </div>
        <div style="clear: both;"></div>
    </div>
    <asp:UpdatePanel ID="upnlActions" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
        <ContentTemplate>
            <div id="pnlFolderPopup" class="popup">
                <a id="hlOpenFolder" href="#"><img src="Admin/Img/icons/folder_page.png" /><span><cms:LocalizedLiteral ID="llOpenFolder" runat="server" /></span></a>
                <a id="hlEditFolder" href="Admin/EditFolder.aspx"><img src="Admin/Img/icons/folder_edit.png" /><span><cms:LocalizedLiteral ID="llEditFolder" runat="server" /></span></a>
                <div class="horizontalDivider" style="margin-bottom: 3px; margin-top: 4px; margin-left: 27px; margin-right: 4px;"></div>
                <asp:LinkButton ID="lbDeleteFolder" runat="server" OnClick="lbDeleteFolder_Click"><img id="imgDeleteFolder" runat="server" src="Admin/Img/icons/cross.png" /><span id="lblDeleteFolder" runat="server"><cms:LocalizedLiteral ID="llDeleteFolder" runat="server" /></span></asp:LinkButton>
            </div>
            <div id="pnlFilePopup" class="popup">
                <asp:LinkButton ID="lbSelect" runat="server" OnClick="lbSelect_Click" OnClientClick="cms.Dialogs.ShowOverlay();"><span><span><img src="Admin/Img/icons/picture_go.png" alt="" /><span><cms:LocalizedLiteral ID="llSelectFile" runat="server" /></span></span></span></asp:LinkButton>
                <asp:LinkButton id="lbPreviewFile" runat="server" OnClick="lbPreviewFile_Click" OnClientClick="cms.Lists.ShowPaneOverlay('filePaneOverlay');"><img id="imgPreviewFile" runat="server" src="Admin/Img/icons/page_white_magnify.png" /><span id="lblPreviewFile" runat="server"><cms:LocalizedLiteral ID="llPreviewFile" runat="server" /></span></asp:LinkButton>
                <asp:LinkButton ID="lbUnzip" runat="server" OnClick="lbUnzip_Click" OnClientClick="cms.Lists.ShowPaneOverlay('filePaneOverlay');"><span><span><img src="Admin/Img/icons/package_go.png" alt="" /><span><cms:LocalizedLiteral ID="llUnzip" runat="server" /></span></span></span></asp:LinkButton>
                <a id="hlEditFile" href="#"><img src="Admin/Img/icons/page_white_edit.png" /><span><cms:LocalizedLiteral ID="llEditFile" runat="server" /></span></a>
                <asp:HyperLink ID="hlPixlr" runat="server" navigateurl="#"><span><span><img src="Admin/Img/icons/picture_edit.png" alt="" /><span><cms:LocalizedLiteral ID="llEditImageInPixlr" runat="server" /></span></span></span></asp:HyperLink>
                <div class="horizontalDivider" style="margin-bottom: 3px; margin-top: 4px; margin-left: 27px; margin-right: 4px;"></div>
                <asp:LinkButton ID="lbDeleteSingleFile" runat="server" OnClick="lbDeleteSingleFile_Click" OnClientClick="cms.Lists.ShowPaneOverlay('filePaneOverlay');"><img id="imgDeleteFile" runat="server" src="Admin/Img/icons/cross.png" /><span id="lblDeleteFile" runat="server"><cms:LocalizedLiteral ID="llDeleteFile" runat="server" /></span></asp:LinkButton>
            </div>
            <input type="hidden" id="hidSelectedFolderID" runat="server" />
            <input type="hidden" id="hidSelectedFolderPath" runat="server" />
            <input type="hidden" id="hidDomain" runat="server" />
            <input type="hidden" id="hidUserID" runat="server" />
            <input type="hidden" id="hidDeleteFolderID" runat="server" />
            <input type="hidden" id="hidDraggedID" runat="server" />
            <input type="hidden" id="hidDropzoneID" runat="server" />
            <input type="hidden" id="hidSelectedFileID" runat="server" />
            <input type="hidden" id="hidBrowseItemData" runat="server" />
            <input type="hidden" id="hidBrowseItemFilter" runat="server" />
            <input type="hidden" id="hidToggleFolderId" runat="server" />
            <asp:LinkButton ID="lbDragEnd" runat="server" OnClick="lbDragEnd_Click" Text="DragEnd" style="position: absolute; left: -10000px;" />
            <asp:Button ID="btnSelectFolder" runat="server" OnClick="btnSelectFolder_Click" Text="Select" style="position: absolute; left: -10000px;" />
            <asp:Button ID="btnToggleFolder" runat="server" OnClick="btnToggleFolder_Click" Text="Toggle" style="position: absolute; left: -10000px;" />
        </ContentTemplate>
    </asp:UpdatePanel>
    <div id="zip" style="position: absolute; left: -10000px;">
        <asp:UpdatePanel ID="upnlZip" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
            <ContentTemplate>
                <p><cms:LocalizedLiteral ID="llZipInfo" runat="server" /></p>
                <table style="margin-bottom: 10px;">
                    <tr>
                        <td><cms:LocalizedLiteral ID="llZipFilename" runat="server" />:</td>
                        <td><asp:TextBox ID="txtZip" runat="server" /></td>
                        <td><strong>.zip</strong></td>
                    </tr>
                </table>
                <asp:Button ID="btnStartZipping" runat="server" OnClick="btnStartZipping_Click" Text="Zip" style="position: absolute; left: -10000px;" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div id="previewDiv" style="position: absolute; left: -10000px; top: 0px;">
        <asp:UpdatePanel ID="upnlPreviewFile" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
            <ContentTemplate>
                <asp:Panel ID="pnlFilePreviewAction" runat="server" />
                <p><asp:Literal ID="litPreviewFileName" runat="server" /></p>
                <iframe id="ifrPreviewFile" runat="server" frameborder="0" class="filePreview" scrolling="auto" height="400"></iframe>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
